* {
    margin: 0;
    padding: 0;
}
body {
    height: 200vh;
}

.bg {
    background-image: url(../../images/mountain.jpg);
    background-size: cover;
    background-position: 50% 50%;
    height: 200vh;
    font-size: 650px;
    font-weight: 900;
    text-align: center;
    position: relative;
    // 根据文字范围进行裁剪
    background-clip: text;
    // 将文字透明镂空
    -webkit-text-fill-color: transparent;
    overflow: hidden;
    padding-top: 100px;
    &::before {
        content: '';
        background-image: inherit;
        background-size: cover;
        background-position: 50% 50%;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: -99;
    }
}
h2 {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    letter-spacing: 8px;
    color: #fff;
}
h1 {
    position: absolute;
    top: 145vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    color: #fff;
    letter-spacing: 10px;
    padding: 100px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
}
